<template>
	<view class="news">
		<view class="newsName">{{news.newsName}}</view>
		<view class="newsTime">{{news.newsTime}} </view>
		<view class="newscontext">{{news.newsContent}}</view>
	</view>
</template>

<script>
import {getNews} from "@/api/system/news";

export default {
		data() {
			return {
				news: "",
			}
		},
		created() {

		},
		methods: {
			onLoad(options) {
				const me = this;
				getNews(options.id).then(response => {
					console.log(me);
					me.news = response.data;
				});
			},


		}
	}
</script>

<style lang="scss">
	.news {
		width: 100vw;
		/* background-color: aqua; */

		.newsName {
			/* background-color: blanchedalmond; */
			padding: 30rpx 0 10rpx 30rpx;
			font-weight: 900;
			font-size: 20px;
		}

		.newsTime {
			/* background-color: blue; */
			color: rgb(127, 131, 137);
			margin: 0 30rpx;
			padding-bottom: 45rpx;
			border-bottom: rgb(127, 131, 137) 2px solid;
		}

		.newscontext {
			padding: 45rpx 30rpx;
			line-height: 45rpx;
			/* background-color: cadetblue; */
		}
	}
</style>